package JDBC.练习_增删改查;

public class Brand {
    private int id;
    private String brandName;
    private String companyName;
    private int ordered;
    private String description;
    private boolean status;

    public Brand() {
    }

    public Brand(int id, String brandName, String companyName, int ordered, String description, boolean status) {
        this.id = id;
        this.brandName = brandName;
        this.companyName = companyName;
        this.ordered = ordered;
        this.description = description;
        this.status = status;
    }

    /**
     * 获取
     *
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return brandName
     */
    public String getBrandName() {
        return brandName;
    }

    /**
     * 设置
     *
     * @param brandName
     */
    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    /**
     * 获取
     *
     * @return companyName
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * 设置
     *
     * @param companyName
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * 获取
     *
     * @return ordered
     */
    public int getOrdered() {
        return ordered;
    }

    /**
     * 设置
     *
     * @param ordered
     */
    public void setOrdered(int ordered) {
        this.ordered = ordered;
    }

    /**
     * 获取
     *
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置
     *
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 获取
     *
     * @return status
     */
    public boolean isStatus() {
        return status;
    }

    /**
     * 设置
     *
     * @param status
     */
    public void setStatus(boolean status) {
        this.status = status;
    }

    public String toString() {
        String flag = status ? "启用" : "禁用";
        return "id：" + id +
                "\t品牌名：" + brandName +
                "\t企业名称：" + companyName +
                "\t排序字段：" + ordered +
                "\t描述：" + description +
                "\t状态：" + flag;
    }
}
